﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZFine.Domain;
using ZFine.Domain.Entity;

namespace Entity.ProjectEnt
{
    /// <summary>
    /// 个人工资详情
    /// </summary>
    public class PersonalSalaryEntity : IEntity<PersonalSalaryEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
    {
        public string F_Id { get; set; }
        public string F_CreatorUserId { get; set; }
        public DateTime? F_CreatorTime { get; set; }
        /// <summary>
        ///逻辑删除标记
        /// </summary>
        public bool? F_DeleteMark { get; set; }
        /// <summary>
        /// 删除实体的用户
        /// </summary>
        public string F_DeleteUserId { get; set; }
        /// <summary>
        /// 删除实体时间
        /// </summary>
        public DateTime? F_DeleteTime { get; set; }
        public string F_LastModifyUserId { get; set; }
        public DateTime? F_LastModifyTime { get; set; }

        /// <summary>
        /// 查询个人工资详细的时候的临时操作对象
        /// </summary>
        public virtual OperationGudaoCarEntity OperationGudaoCarEntity { get; set; }

        /// <summary>
        /// 每次操作的时间
        /// </summary>
        public DateTime? OperationTime { get; set; }

        /// <summary>
        ///关联工资总表的主键
        /// </summary>
        public virtual SalaryEntity SalaryEntity { get; set; }

        /// <summary>
        /// 关联用户表自己的数据
        /// </summary>
        public virtual UserEntity Persion { get; set; }

        /// <summary>
        /// 每次操作的吨数 运量
        /// </summary>
        public decimal? Weight { get; set; }

        /// <summary>
        /// 每次操作的吨数 对位
        /// </summary>
        public decimal? DWeight { get; set; }
        /// <summary>
        /// 每次操作的工资
        /// </summary>
        public decimal? EveryTimeSalary { get; set; }

        /// <summary>
        /// 每次操作的车的ID、
        /// </summary>
        public virtual CarriageEntity EveryCarID { get; set; }

        /// <summary>
        /// 每次操作前的工资
        /// </summary>
        public decimal? BeforeOperationSalary { get; set; }

        /// <summary>
        /// 每次操作后的工资
        /// </summary>
        public decimal? AfterOperationSalary { get; set; }

        public bool? State { get; set; }

        //关联上一次的个人工资表
        public virtual PersonalSalaryEntity BeforePersonalSalary { get; set; }
        /// <summary>
        /// 加工资的类型 0运量 1放行 2对位
        /// </summary>
        public int SalaryType { get; set; }
        /// <summary>
        /// 每次放行的时候车数加1
        /// </summary>
        public int OperCarNum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remake { get; set; }
    }
}
